﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DiggManage.aspx.cs"
    Inherits="WinnerCMS.WebUI.Admin.Common.DiggManage" %>

<!doctype html>
<html>
<head id="Head1" runat="server">
    <title>Digg管理</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>

                <BootStrap:Breadcrumb ID="brPath" runat="server">
                    <asp:ListItem Text="Digg 日志管理" Value="WinnerCMS_DiggDiaryManage.aspx?ModelId=<%= ModelId %>"></asp:ListItem>
                </BootStrap:Breadcrumb>
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                    GridLines="None" CssClass="table table-bordered table-condensed table-hover" ItemType="WinnerCMS.Model.Digg" >
                    <HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <HeaderTemplate>
                                <input type="checkbox" name="chkHeader" value="chkHeader" onclick="javascript: SelectAll(this);" />
                            </HeaderTemplate>
                            <HeaderStyle Width="30px" />
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbkSelectID" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="内容">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="<%# Item.Core.Link %>" Target="_blank" Text='<%# Item.Core.ContentTitle %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="GoodNum" HeaderText="推荐">
                            <HeaderStyle Width="70px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BadNum" HeaderText="反对">
                            <HeaderStyle Width="70px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LastUserName" HeaderText="最后的用户">
                            <HeaderStyle Width="120px" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>

                <BootStrap:Button ID="btnDelSeletedID" runat="server" Text="删除选中" OnClick="DelSeletedID_Click" EnableViewState="False" Exterior="danger" />


                <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging" CustomInfoSectionWidth="240px">
                </WinnerCMS:PageNavigation>

            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
